<?php
require_once("includes/config.php");
require_once("includes/ez_sql_core.php");
require_once("includes/ez_sql_mysql.php");
//phpinfo();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>每日优惠信息精选</title> 
<meta http-equiv="Pragma" content="no-cache" /> 
<meta content="每日优惠信息精选，超级优惠便宜的SPA，游泳，电影票，应有尽有！" name="description"/> 
<!--[if IE]>
<link media="screen" rel="stylesheet" type="text/css" href="http://static.tudousi.com/styles/blueprint/ie.css" />
<![endif]--> 
<link media="screen" rel="stylesheet" type="text/css" href="http://static.tudousi.com/styles/blueprint/screen.css" /> 
</head>
<body>
<div class="container">
<?php require_once("includes/header.php"); ?>
<div class="span-24">
<h1>每日优惠信息精选</div>

<ul>
<?php
	$db = new ezSQL_mysql(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);
/*
	$current_time = $db->get_var("SELECT " . $db->sysdate());
	print "ezSQL demo for mySQL database run @ $current_time";
*/
	$campaigns = $db->get_results("SELECT name, url FROM yhdd_campaign LIMIT 10");
	foreach($campaigns as $campaign)
	{
		echo $campaign->name;
//		echo "<li>" + $campaign->name + "</li>";
	}
	$db->debug();
?>
</ul>
</div>
<?php require_once("includes/footer.php"); ?>
</div>
</body>
</html>

